package com.zhengf.rdf;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
@MapperScan("com.zhengf.rdf.mapper")
public class RDFApplication extends SpringBootServletInitializer {
    private static final Logger logger = LoggerFactory.getLogger(RDFApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(RDFApplication.class, args);
        logger.info("=============================启动完毕=============================");
    }
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(RDFApplication.class);
    }

}

